package com.school.admin.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 接口权限表
 * </p>
 *
 * @author sunpx
 * @since 2022-03-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "MallSysPurview对象", description = "接口权限表")
public class MallSysPurview implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "序号,PK")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @ApiModelProperty(value = "接口名称")
    private String purviewName;

    @ApiModelProperty(value = "接口地址")
    private String purviewUrl;

    @ApiModelProperty(value = "请求地址")
    private String method;

    @ApiModelProperty(value = "物理地址")
    private String address;

    @ApiModelProperty(value = "创建时间 自动记录")
    @TableField(fill = FieldFill.INSERT)
    private Date creationTime;

    @ApiModelProperty(value = "备注")
    private String remark;


}
